package testsuite_homepage;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.Test;

public class Subsuite_HP_Left {
  @Test
  public void fL() {
	 // WebDriver driver = new FirefoxDriver();

		//driver.get("http://bigtester.com/");
		 //System.out.println("Browser open");

		//String i = SuiteInitializer.getDriver().getCurrentUrl();

		//System.out.println(i + " home url printed in console");

		//driver.close();

		//System.out.println("Browser closed");
	  String username = "bigtester"; 
	  By usernameLocator= By.id("modlgn_username"); 
	  By passwordLocator= By.id("modlgn_passwd"); 
	  By loginButtonLocator= By.name("Submit"); 
	  SuiteInitializer.getDriver().findElement(usernameLocator).sendKeys(username); 
	  
	  CharSequence password = "bigtester";
	SuiteInitializer.getDriver().findElement(passwordLocator).sendKeys(password);
	  SuiteInitializer.getDriver().findElement(loginButtonLocator).click(); 
	  //wait2(); 
	  Assert.assertTrue(SuiteInitializer.getDriver().getPageSource().contains("Username and password do not match or you do not have an account yet"), "False Login page not appear"); 
	  System.out.println("False Login page appears");

  }
}
